package com.ztgf.commodity.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author: zhanghualang
 * date: 2020-05-25 13:47
 * Description: 品牌列表vo
 */
@Data
public class BrandInfoVO implements Serializable {
    protected Long id;

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;

    @ApiModelProperty("创建人ID")
    @TableField("create_user_id")
    protected Long createUserId;
    @ApiModelProperty("更新人ID")
    @TableField("update_user_id")
    protected Long updateUserId;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    protected Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")//gosn
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//输入字符串
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")//fastjson
    @TableField("update_time")
    protected Date updateTime;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图标")
    private String logoUrl;

    @ApiModelProperty(value = "首字母缩写")
    private String initials;

    @ApiModelProperty(value = "状态;0正常、1删除")
    private Integer status;

    @ApiModelProperty(value = "是否发布;0未发布，1发布")
    private Integer isPublish;

    @ApiModelProperty(value = "排序;默认倒序 ")
    private Integer sort;

    @ApiModelProperty(value = "制造商")
    private String manufacturer;

    @ApiModelProperty(value = "商家数量")
    private Integer shopNumber;
}
